<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Button test</title>
<link rel="stylesheet" type="text/css" href="../button/button.css" />
<link rel="stylesheet" type="text/css" href="../button/my_button.css" />
<link rel="stylesheet" type="text/css" href="../togglebutton/togglebutton.css" />
<link rel="stylesheet" type="text/css" href="radiobutton.css" />

<script type="text/javascript" src="../../os3jslib/liwe.js"></script>
<script type="text/javascript" src="../../os3jslib/object_enh.js"></script>
<script type="text/javascript" src="../../os3jslib/array_enh.js"></script>
<script type="text/javascript" src="../wwl.js"></script>
<script type="text/javascript" src="../button/button.js"></script>
<script type="text/javascript" src="../togglebutton/togglebutton.js"></script>
<script type="text/javascript" src="radiobutton.js"></script>

<script type="text/javascript">
function init ()
{
	do_all ();
}

function do_all ()
{
	var b = new WWL.radiobutton ( 'prova' );
	b.items = [
			{ label: "uno" },
			{ label: "due" },
			{ label: "tre" }
		  ];

	b.set_event ( "change", function () { alert ( "SELECTED: " + b.selected ); } );

	b.render ( "p1" );

	b.select ( 1 );
}

</script>
</head>
<body onload="init()">
<div id="p1"></div>
<div id="p2"></div>

</body>
</html>
